import request from '@/utils/request'


export function listJwc(params) {
  return request({
    url: "/knrApproval/srsKnrdapprovalrecord/listJwc",
    method: 'get',
    params
  });
}

export function listXw(params) {
  return request({
    url: "/knrApproval/srsKnrdapprovalrecord/listXw",
    method: 'get',
    params
  });
}
export function getxh(params) {
  console.log(params)
  return request({
    url: "/knrApproval/srsKnrdapprovalrecord/xh",
    method: 'get',
    params
  });
}

export function listFdy(params) {
  return request({
    url: "/knrApproval/srsKnrdapprovalrecord/listFdy",
    method: 'get',
    params
  });
}


export function listOwn(params) {
  return request({
    url: "/knrApproval/srsKnrdapprovalrecord/listOwn",
    method: 'get',
    params
  });
}



// 查询困难认定列表
export function listApply(query) {
  return request({
    url: '/knrApproval/srsKnrdapprovalrecord/list',
    method: 'get',
    params: query
  })
}

// 查询困难认定详细
export function getApply(id) {
  return request({
    url: '/knrApproval/srsKnrdapprovalrecord/' + id,
    method: 'get'
  })
}

// 新增困难认定
export function addApply(data) {
  return request({
    url: '/knrApproval/srsKnrdapprovalrecord/add',
    method: 'post',
    data: data
  })
}

// 修改困难认定
export function updateApply(data) {
  return request({
    url: '/knrApproval/srsKnrdapprovalrecord/edit',
    method: 'post',
    data: data
  })
}

// 删除困难认定
export function delApply(id) {
  return request({
    url: '/knrApproval/srsKnrdapprovalrecord/delete/' + id,
    method: 'get'
  })
}
